//
//  LotteryCollectionViewCell.m
//  K8彩票
//
//  Created by zhoubo on 2017/6/7.
//  Copyright © 2017年 zhoubo. All rights reserved.
//

#import "LotteryCollectionViewCell.h"
#import "LotteryView1.h"


@interface LotteryCollectionViewCell ()
@property(nonatomic,strong)LotteryView1 *view;
@end

@implementation LotteryCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        LotteryView1* view = [[NSBundle mainBundle] loadNibNamed:@"LotteryView1" owner:nil options:nil].lastObject;
        
        // +1  ®®®®®®®®®®®®®®®®®
        view.frame = CGRectMake(0, 0, self.bounds.size.width, self.frame.size.height+1);
        self.view = view;
        
//        if(self.index % 2 == 1)
//        {
//            [self.view hideRightview];
//        }
//

        [self.contentView addSubview:view];
        
        self.contentView.layer.cornerRadius = 6;
        self.contentView.layer.masksToBounds = YES;
        
    
    }
    return self;
}



-(void)setModel:(LotteryModel *)model
{
    _model = model;
    self.view.model = self.model;
}

-(void)setBackgroundColor:(UIColor *)backgroundColor
{
    self.view.backgroundColor = backgroundColor;
}


@end
